Package com.netscape.cmstools.tps
Class TPSClientCLI
java.lang.Object
org.dogtagpki.cli.CLI
org.dogtagpki.cli.CommandCLI
com.netscape.cmstools.cli.SubsystemCommandCLI
com.netscape.cmstools.tps.TPSClientCLI
- Author:
- Endi S. Dewata
-
Field Summary
FieldsFields inherited from class com.netscape.cmstools.cli.SubsystemCommandCLI
subsystemCLIFields inherited from class org.dogtagpki.cli.CLI
description, exitOnError, formatter, modules, name, options, parent, parser, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(long connection) longcreateBeginOpMsg(TPSMessage.OpType opType, Map<String, String> exts) longlongcreateConnection(long client) longcreateToken(long client) voiddisconnect(long connection) voiddisplayHelp(long client) voiddisplayToken(long client, Map<String, String> params) voiddisplayVariable(long client, Map<String, String> params) voidexecute(org.apache.commons.cli.CommandLine cmd) intgetMsgType(long message) booleangetOldStyle(long client) voidhandleASQRequest(long client, Map<String, String> params, long token, long connection, long message) voidhandleEndOp(long message) voidhandleExtendedLoginRequest(long client, Map<String, String> params, long token, long connection, long message) voidhandleLoginRequest(long client, Map<String, String> params, long token, long connection, long message) voidhandleNewPinRequest(long client, Map<String, String> params, long token, long connection, long message) voidhandleSecureIdRequest(long client, Map<String, String> params, long token, long connection, long message) voidhandleStatusUpdateRequest(long client, Map<String, String> params, long token, long connection, long message) voidhandleTokenPDURequest(long client, Map<String, String> params, long token, long connection, long message) voidinvokeOperation(long client, String op, Map<String, String> params) voidlistVariables(long client) voidperformOperation(long client, Map<String, String> params, Map<String, String> exts, long token, long connection, TPSMessage.OpType opType) voidperformOperations(long client, Map<String, String> params, TPSMessage.OpType opType) voidlongreadMsg(long connection, long token) voidremoveClient(long client) voidremoveConnection(long connection) voidremoveMsg(long message) voidremoveToken(long token) voidsendMsg(long connection, long message) voidsetOldStyle(long client, boolean value) voidsetupDebug(long client, Map<String, String> params) voidsetupToken(long client, Map<String, String> params) voidsetVariable(long client, Map<String, String> params) Methods inherited from class com.netscape.cmstools.cli.SubsystemCommandCLI
createOptions, execute, getPKIClient, getSubsystemClient, parseOptionsMethods inherited from class org.dogtagpki.cli.CLI
addModule, addModule, executeCommand, executeCommands, findModule, findModules, getConfig, getDescription, getFullModuleName, getFullName, getManPage, getModule, getModules, getName, getParent, getRoot, handleException, isDeprecated, parseLine, printVersion, removeModule, runExternal, runExternal, setDescription, setName
-
Field Details
-
logger
public static org.slf4j.Logger logger -
tpsCLI
-
-
Constructor Details
-
TPSClientCLI
-
-
Method Details
-
printHelp
public void printHelp() -
parse
-
createClient
- Throws:
Exception
-
removeClient
- Throws:
Exception
-
createToken
- Throws:
Exception
-
removeToken
- Throws:
Exception
-
createConnection
- Throws:
Exception
-
connect
- Throws:
Exception
-
disconnect
- Throws:
Exception
-
removeConnection
- Throws:
Exception
-
getOldStyle
- Throws:
Exception
-
setOldStyle
- Throws:
Exception
-
displayHelp
- Throws:
Exception
-
createBeginOpMsg
-
sendMsg
public void sendMsg(long connection, long message) -
readMsg
public long readMsg(long connection, long token) -
getMsgType
public int getMsgType(long message) -
removeMsg
public void removeMsg(long message) -
handleLoginRequest
public void handleLoginRequest(long client, Map<String, String> params, long token, long connection, long message) throws Exception- Throws:
Exception
-
handleExtendedLoginRequest
public void handleExtendedLoginRequest(long client, Map<String, String> params, long token, long connection, long message) throws Exception- Throws:
Exception
-
handleStatusUpdateRequest
public void handleStatusUpdateRequest(long client, Map<String, String> params, long token, long connection, long message) throws Exception- Throws:
Exception
-
handleSecureIdRequest
public void handleSecureIdRequest(long client, Map<String, String> params, long token, long connection, long message) throws Exception- Throws:
Exception
-
handleASQRequest
public void handleASQRequest(long client, Map<String, String> params, long token, long connection, long message) throws Exception- Throws:
Exception
-
handleTokenPDURequest
public void handleTokenPDURequest(long client, Map<String, String> params, long token, long connection, long message) throws Exception- Throws:
Exception
-
handleNewPinRequest
public void handleNewPinRequest(long client, Map<String, String> params, long token, long connection, long message) throws Exception- Throws:
Exception
-
handleEndOp
- Throws:
Exception
-
performOperation
public void performOperation(long client, Map<String, String> params, Map<String, throws ExceptionString> exts, long token, long connection, TPSMessage.OpType opType) - Throws:
Exception
-
performOperations
public void performOperations(long client, Map<String, String> params, TPSMessage.OpType opType) throws Exception- Throws:
Exception
-
displayToken
- Throws:
Exception
-
setupToken
- Throws:
Exception
-
setupDebug
- Throws:
Exception
-
setVariable
- Throws:
Exception
-
displayVariable
- Throws:
Exception
-
listVariables
- Throws:
Exception
-
invokeOperation
- Throws:
Exception
-
execute
- Overrides:
executein classCommandCLI- Throws:
Exception
-